Objects Reference

light_vertex::add_light

Prototype

void add_light(vector& p,vector& c,float r)

Parameters

Parameter Type Description
p vector& light position
c vector& light color
r float light radius

Return Value

None

Remarks

This function adds a new light to the light_vertex array of lights. If the maximum number of hardware lights is exceeded, the light is not added.